-- GENERATED SPELL FOR [Isla Starmane] --


function spell0_18760(pUnit, Event) --@Entangling Roots,n/a--
pUnit:FullCastSpellOnTarget(33844,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_18760', 6500, 1)
end

function spell1_18760(pUnit, Event) --@Moonfire,n/a--
pUnit:FullCastSpellOnTarget(15798,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_18760', 12000, 1)
end

function spell2_18760(pUnit, Event) --@Wrath,n/a--
pUnit:FullCastSpellOnTarget(9739,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_18760', 2000, 1)
end

function Sorts_18760(pUnit, Event)
local choix_sorts_18760 = math.random(0, 2)
if choix_sorts_18760 == 0 then
pUnit:RegisterEvent('spell0_18760', 1, 1)
end
if choix_sorts_18760 == 1 then
pUnit:RegisterEvent('spell1_18760', 1, 1)
end
if choix_sorts_18760 == 2 then
pUnit:RegisterEvent('spell2_18760', 1, 1)
end
end

function mob18760_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_18760', math.random(1500, 3000), 1)
end

function mob18760_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18760_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18760_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(18760, 1, 'mob18760_Action')
RegisterUnitEvent(18760, 2, 'mob18760_Leave')
RegisterUnitEvent(18760, 3, 'mob18760_Kill')
RegisterUnitEvent(18760, 4, 'mob18760_Die')
